#include<signal.h>
#include "../common.h"

static void sig_abrt(int signo)
{
	printf("sig_abort-----\n");
	exit(0);
	return;
}

int main(int argc, char** argv)
{
	struct sigaction act, oldact;
	//act.sa_handler = sig_abrt;
	act.sa_handler = SIG_IGN;
	if(-1 == sigaction(SIGABRT, &act, &oldact))
	{
		printf("sigaction err-----\n");
		return -1;
	}

	printf("before abort-----\n");
	abort();
	printf("after abort-----\n");

	return 0;
}
